import 'package:pigeon/pigeon.dart';

@ConfigurePigeon(PigeonOptions(
  dartOut: './lib_ui/lib/bridge/dialog_bridge.dart',
  dartOptions: DartOptions(),
  javaOut: './android/app/src/main/kotlin/com/sleepingcat/flutter_boost_dart/pigeons/DialogBridge.java',
  javaOptions: JavaOptions(),
  objcHeaderOut: './ios/Runner/Pigeons/DialogBridge.h',
  objcSourceOut: './ios/Runner/Pigeons/DialogBridge.m',
))
@HostApi()
abstract class DialogHostApi {
  // 展示原生普通弹窗
  @async
  bool? showNativeNormalDialog(String title, String content);

  @async
  String? showNativeInputDialog(String title, String content, String hint);
}

@FlutterApi()
abstract class DialogFlutterApi {
  // 展示flutter弹窗
  @async
  bool? showFlutterNormalDialog(String title, String content);

  @async
  String? showFlutterInputDialog(String title, String content, String hint);
}
